//
//  ViewController.m
//  YLScaner
//
//  Created by Admin on 2025/9/23.
//

#import "ViewController.h"
//#import <LanYouScaner/LYScanerViewController.h>
#import "BarcodeScannerViewController.h"
#import "WXQRViewController.h"
#import "YLListItemExampleController.h"
#import <LanYouToolBox/YLScannerViewController.h>


@interface ViewController ()



@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (IBAction)clickScanerSender:(UIButton *)sender
{
    
    switch (sender.tag) {
        case 1001:{
            
//            BarcodeScannerViewController *scaner = BarcodeScannerViewController.alloc.init;
//            [self.navigationController pushViewController:scaner animated:YES];
            
            YLScannerViewController *scaner = [YLScannerViewController.alloc initWithAnimated:YES];
            [self.navigationController pushViewController:scaner animated:YES];
        }break;
        case 1002:{
            
            YLScannerViewController *scaner = YLScannerViewController.alloc.init;
            scaner.scanResultCallback = ^(NSString * _Nonnull result) {
                
            };
            [self presentViewController:scaner animated:YES completion:nil];
        }break;
        case 1003:{
            
            YLListItemExampleController *listItem = [YLListItemExampleController.alloc initWithStyle:UITableViewStyleGrouped];
            [self.navigationController pushViewController:listItem animated:YES];
        }break;
            
            
            
        default:
            break;
    }
    
}


@end
